/*
 * Copyright (c) 2016. For Intelligent Group.
 */

package com.intelligent.ispc.core.repository;

import com.intelligent.ispc.core.entity.GrrConfig;
import com.intelligent.ispc.core.repository.mybatis.MyBatisRepository;

/**
 * Created by Julia.Zhou on 2016/08/08.
 */

@MyBatisRepository
public interface GrrConfigDao {

    /**
     * Create GRR configuration item.
     *
     * @param grrConfig details.
     */
    void createGrrConfig(GrrConfig grrConfig);

    /**
     * Update GRR configuration item.
     *
     * @param grrConfig details.
     */
    void updateGrrConfig(GrrConfig grrConfig);

    /**
     * Delete GRR configuration item by id.
     *
     * @param id item id.
     */
    void deleteGrrConfig(Long id);

    /**
     * Find GRR configuration item by id.
     *
     * @param id item id.
     */
    GrrConfig findById(Long id);

    /**
     * Find GRR configuration item.
     */
    GrrConfig findGrrConfig();
}
